//0：输出今天的日期和周几，周几用汉字表示
package Work0529;

import java.util.Calendar;

public class Today {

	public static void main(String[] args) {
		Calendar today = Calendar.getInstance();
		System.out.println("今天的日期为" + today.getTime());
		int day = today.get(Calendar.DAY_OF_WEEK);
		String[] week = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
		System.out.println("今天是" + week[day - 1]);

	}

}
